
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>所有用户</title>
</head>
<body>
    {% extends 'base.html' %}
    {% block content %}
    <form action="{{ url_for('delete_users') }}" method="post">
        <table border="1" cellspacing="0">
            <tr>
                <td>用户ID</td>
                <td>用户名</td>
                <td>关注数</td>
                <td>操作</td>
            </tr>
            {% for user in users %}
                <tr>
                    <td><input type="checkbox" name="user_ids" value="{{ user.id }}">{{ user.id }}</td>
                    <td>{{ user.name }}</td>
                    <td>{{ user.num }}</td>
                    <td>
                        <a href="{{ url_for('delete_user', user_id=user.id) }}">删除</a>
                        <a href="{{ url_for('edit_user', user_id=user.id) }}">修改</a>
                        <a href="{{ url_for('user_detail', user_id=user.id) }}">用户详情</a>
                    </td>
                </tr>
            {% endfor %}
        </table>
        <input type="submit" value="批量删除">
    </form>
    {% endblock content %}
</body>
</html>
